package cn.pconline.autoclub.entity;

import java.util.Date;

import org.gelivable.dao.Column;
import org.gelivable.dao.Entity;
import org.gelivable.dao.Id;

/**
 * @author zhouruxuan
 * @date 2015年2月28日 上午10:10:27
 */
@Entity(tableName = "ac_photo_user_praise", split = "Mod:photoCreateBy:10")
public class PhotoUserPraise {
	
	@Id
    @Column(name = "user_id")
    private long userId;//用户ID
    @Id
    @Column(name = "photo_id")
    private long photoId;//照片ID
    @Column(name = "album_id")
    private long albumId;//相册ID
    @Column(name = "praise_at")
    private Date praiseTime;//操作点赞时间：yyyy-MM-dd hh:mm:ss
    @Column(name = "status")
    private int status;//是否已赞，0：取消赞，1：已赞
    public static final int STATUS_PRAISE = 1;
    public static final int STATUS_UNPRAISE = 0;
    @Column(name = "is_read")
    private int isRead;//是否已读，0：未读，1：已读
    public static final int READ_YES = 1;
    public static final int READ_NO = 0;
    @Column(name = "photo_create_by")
    private long photoCreateBy;//照片的创建者ID
	public long getUserId() {
		return userId;
	}
	public void setUserId(long userId) {
		this.userId = userId;
	}
	public long getPhotoId() {
		return photoId;
	}
	public void setPhotoId(long photoId) {
		this.photoId = photoId;
	}
	public long getAlbumId() {
		return albumId;
	}
	public void setAlbumId(long albumId) {
		this.albumId = albumId;
	}
	public Date getPraiseTime() {
		return praiseTime;
	}
	public void setPraiseTime(Date praiseTime) {
		this.praiseTime = praiseTime;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public int getIsRead() {
		return isRead;
	}
	public void setIsRead(int isRead) {
		this.isRead = isRead;
	}
	public long getPhotoCreateBy() {
		return photoCreateBy;
	}
	public void setPhotoCreateBy(long photoCreateBy) {
		this.photoCreateBy = photoCreateBy;
	}

}
